package com.markyao.dao.mapper;

import com.markyao.dao.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProductMapper {


    List<Product> findHotList();

    Product findById(Integer id);

    List<Product> findNewList();

    List<Product> findBySearch(String search);

    List<Product> findByCid(Integer cId);

    String getNameByCid(Integer cid);

    int reduceMiaoshaCnt(@Param("id") Integer goodsId);
}
